import { View } from "../../../mvc/core/View";
import { IFlameCountView } from "./IFlameCountView";
import { LayerManager } from "../../manager/LayerManager";
import { GImageBitmap } from "../../../../com/mui/controls/GImageBitmap";
import { GlobalStyle } from "../../../common/global/GlobalStyle";
import { ObjCreate } from "../common/ObjCreate";
import { Language } from "../../../../extend/language/Language";
import { Global } from "../../../../com/gengine/global/Global";
type int = number;
//class FlameCountView
    
    export  class FlameCountView extends View implements IFlameCountView
    {
        constructor()
        {
            super();
            this.mouseChildren = false;
            this.mouseEnabled = false;
            layer = LayerManager.uiLayer;
            this.init();
            return;
        }

        protected init(): void
        {
            var loc1=new GImageBitmap("GuildFlame");
            this.addChild(loc1);
            var loc2=GlobalStyle.textFormat6;
            loc2.size = 14;
            this._tfExperience = ObjCreate.createTextField(Language.getStringByParam(41705, "0"), 92, 72, 160, 20, this, loc2);
            this._tfNimbus = ObjCreate.createTextField(Language.getStringByParam(41706, "0"), 92, 96, 160, 20, this, loc2);
            return;
        }

        public updateExperience(arg1: int): void
        {
            this._tfExperience.text = Language.getStringByParam(41705, arg1.toString());
            return;
        }

        public updateNimbus(arg1: int): void
        {
            this._tfNimbus.text = Language.getStringByParam(41706, arg1.toString());
            return;
        }

        public clear(): void
        {
            this._tfExperience.text = Language.getStringByParam(41705, "0");
            this._tfNimbus.text = Language.getStringByParam(41706, "0");
            return;
        }

        public resetPosition(): void
        {
            this.x = Global.stage.stageWidth - 300;
            this.y = 150;
            return;
        }

        /* internal */ /* var */_tfExperience: Object /* flash.text.TextField */;

        /* internal */ /* var */_tfNimbus: Object /* flash.text.TextField */;
    }
